<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		.q{
			width: 200px;
			height: 200px;
			border: 1px solid red;
			position: relative;
			margin: 100px auto;
		}
		.a{
			width: 100px;
			height: 100px;
			background: red;
			/*position: absolute;
			top: 25%;
			left: 25%;*/
			transition:all 1s linear;
			transform: translateX(50px) translateY(50px);
		}
		.a{
			color: #fff;
		}
		.q:hover .a{
			/*left: 200px;
			bottom:200px;*/
			width: 200px;
			height: 200px;
			/*top: 0;*/
			/*left: 0;*/
			color: aquamarine;
			transform:translate(0,0);
			background: blueviolet;
		}l
	</style>
</head>
<body>
	<div class="q">
		<!--<img src="timg.jpg"/>-->
		<div class="a">
			旅途永无无止境
		</div>
	</div>
</body>
</html>